package com.bbs.detai1713.controller;

import com.bbs.detai1713.model.LoginInformation;
import com.bbs.detai1713.tool.ResultInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@ApiIgnore
@Slf4j
@RestController
public class TestController {
    @RequestMapping("/test")
    public ResultInfo Login(@RequestBody LoginInformation loginInformation) {
        log.info("登录成功:{}", loginInformation);
        return ResultInfo.success(loginInformation, "登陆成功!");
    }
}
